﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RSModels
{
    public class Car
    {
        /// <summary>
        /// 汽车ID
        /// </summary>
        public int ID { get; set; }

        /// <summary>
        /// 所属公司ID
        /// </summary>
        public int CompanyID { get; set; }

        /// <summary>
        /// 装载量
        /// </summary>
        public float LoadCapacity { get; set; }

        /// <summary>
        /// 牌照
        /// </summary>
        public string License { get; set; }

        public override string ToString()
        {
            return $"汽车编号：{ID}，所属公司：{CompanyID}，装载量：{LoadCapacity}，牌照：{License}";
        }
    }
}
